<?php
// +----------------------------------------------------------------------
// | INPHP
// | Copyright (c) 2023 https://inphp.cc All rights reserved.
// | Author: 幺月儿(https://gitee.com/lulanyin) Email: inphp@qq.com
// | 该文件的开源协议以所在项目的LICENSE文件为准，请遵守开源协议要求
// +----------------------------------------------------------------------
// | 单个文章标签
// +----------------------------------------------------------------------
namespace app\cms\tags;

class archive extends aTag
{
    public static function process(array $params): array
    {
        $params = self::initParams($params);
        $archive = (new \app\cms\http\api\archive())->index($params);
        return $archive->error === 0 ? $archive->data : [];
    }
}